package com.li.springbootproject.config.datasource;

import java.lang.annotation.*;

/**
 * @author MarLonBrando
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface MyDataSource {

    /**
     * 切换数据源名称
     */
    DataSourceType value() default DataSourceType.SLAVE;
}